#ifndef UTIL_H
#define UTIL_H

#define LINE_LENGTH_MAX 2048

#include <stdio.h>
#include "defs.h"

log_file * open_log_file(const char * log_file_path);

log_line * get_line_from_file(const log_file * lf);

void print_log_line(const log_line * ll, FILE * out, const settings * st);

void free_log_line(log_line * line);

void free_log_file(log_file * lf);

void free_parsed_log_entry(parsed_log_entry * ple);

#endif
